package com.red.wood.module.api.service.impl;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.red.wood.module.api.dao.ApiDao;
import com.red.wood.module.api.service.ApiService;

@Service
public class ApiServiceImpl implements ApiService{

	@Autowired
	private ApiDao dao;
	
	@Override
	public Map<String, Object> getPageData(Map<String, Object> param) {
		return dao.getPageData(param);
	}
	
	@Override
	public List<Map<String, Object>> getApiCategoryInfo(String categoryNameStr) {
		return dao.getApiCategoryInfo(categoryNameStr);
	}
	
	@Override
	public List<Map<String, Object>> getApiReturnParametersInfo(String serviceId) {
		return dao.getApiReturnParametersInfo(serviceId);
	}

	@Override
	public List<Map<String, Object>> getApiRequestParametersInfo(String serviceId) {
		return dao.getApiRequestParametersInfo(serviceId);
	}

	@Override
	public List<Map<String, Object>> getApiServiceInfoByToken(String token) {
		return dao.getApiServiceInfoByToken(token);
	}

	@Override
	public String apiServicePublic(HttpServletRequest request) {
		return dao.apiServicePublic(request);
	}
}
